import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";

@Index("idx_access", ["access"], {})
@Entity("media_content", { schema: "cbox" })
export class MediaContent {
  @PrimaryGeneratedColumn({ type: "bigint", name: "id", unsigned: true })
  id: string;

  @Column("varchar", { name: "type", length: 8 })
  type: string;

  @Column("varchar", { name: "store_type", length: 8 })
  storeType: string;

  @Column("varchar", { name: "access", length: 255 })
  access: string;

  @Column("timestamp", {
    name: "create_time",
    default: () => "CURRENT_TIMESTAMP",
  })
  createTime: Date;
}
